package com.gitee.yannzh.rune.core.base.controller;


import com.gitee.yannzh.rune.core.base.vo.Result;

/**
 * @author yann
 * @description: Controller基类
 * @date 2022/2/15 17:01
 * @version：1.0
 */
public abstract class BaseController {


    protected <R> Result<R> success(R data) {
        return Result.ok(data);
    }

    protected Result<Void> success() {
        return Result.ok();
    }


}
